package net.wofly.right.service;

import java.util.List;

import net.wofly.right.domain.RegisterVerifyInfo;

public interface IRegisterVerifyInfoService {
    
    /**
     * 增加或修改
     *
     * @param entity
     * @return
     */
    public RegisterVerifyInfo save(RegisterVerifyInfo entity);
    
    /**
     * 删除
     *
     * @param entity
     * @return
     */
    public void delete(RegisterVerifyInfo entity);
    
    /**
     * 根据主键ID删除
     *
     * @param key
     * @return
     */
    public void delete(String key);
    
    /**
     * 根据主键查询
     *
     * @param key
     * @return
     */
    public RegisterVerifyInfo findOne(String key);
    
    public List<RegisterVerifyInfo> save(List<RegisterVerifyInfo> entityList);
    
    public List<RegisterVerifyInfo> findByRegisterAccountOrderByRegisterTimeDesc(String registerAccount);
    
    public void deleteByInvalidTimeLessThan(Long currentMillis);
    
}
